package com.huoxingy.statics.services;

import com.huoxingy.statics.vo.TotalMemberConsumptionsVo;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * Created by lihu on 2018/1/8.
 */
public interface TotalMemberConsumptionService {

    /**
     * 获取会员总消费
     *
     * @param storeId
     * @param pageable
     * @return
     */
    TotalMemberConsumptionsVo getTotalMemberConsumption(String storeId, Pageable pageable);

    /**
     * 获取流失会员信息
     *
     * @param storeId
     * @return
     */
    TotalMemberConsumptionsVo getLostMemberConsumption(String storeId, Pageable pageable);

    /**
     * 获取所有流失会员ID
     *
     * @param storeId
     * @return
     */
    List<Map<String, Object>> getLostMemberIds(String storeId);
}
